package com.glela.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.glela.common.util.DateUtil;
import com.glela.platform.mapper.VisitorClickRecordMapper;

public class VisitRecordTask {

	private static final Logger logger = LoggerFactory.getLogger(VisitRecordTask.class);

	@Autowired
	private VisitorClickRecordMapper visitorClickRecordMapper;

	public void countVisitRecord() {
		logger.info("---统计店铺访客和浏览量---");
		visitorClickRecordMapper.countVisitorClickRecord(DateUtil.oneDayAgo(), DateUtil.someDayAgo(7),
				DateUtil.someDayAgo(30), DateUtil.someDayAgo(90));
	}
}
